package io.github.talelin.latticy.mapper;

import io.github.talelin.latticy.model.OmsUserwareDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.github.talelin.latticy.vo.WarehouseVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author generator@wulongbo
 * @since 2022-05-30
 */
public interface OmsUserwareMapper extends BaseMapper<OmsUserwareDO> {
    /**
     * 查询指定用户关联的仓库列表
     * @param userId
     * @return 仓库列表
     */
    List<WarehouseVO> getWareNameListByOmsUserId(Integer userId);

    /**
     * 真实删除
     * @param userId
     * @return 仓库列表
     */
    int deleteRealByUserIdAndCodes(@Param("userId")Integer userId, @Param("removeCodes") List<String> removeCodes);
}
